<?php

defined( 'PDNS_AUTH' ) or die( "Unauthorized" );

$domain = $model->domain;
$records = $model->records;
?>

Records:
<table class='records'>
<tr>
	<th>Name</th>
	<th>Type</th>
	<th>Content</th>
	<th>TTL</th>
	<th>Priority</th>
</tr>
<?php foreach( $records as $r ): ?>
	<tr>
		<!-- Record ID: <?php echo $r->id; ?> -->
		<td class='ralign'><?php echo $r->name; ?></td>
		<td class='calign'><?php echo $r->type; ?></td>
		<td><?php echo $r->content; ?></td>
		<td><?php echo $r->ttl; ?></td>
		<td class='calign <?php if(!$r->prio) echo "hidden"; ?>'><?php echo $r->prio; ?></td>
	</tr>
<?php endforeach; ?>
</table>
